wx.$api = {
  async sendSms(data) { //  获取手机验证码
    return await wx.$ajax('api/sendSms', data || {}, 'POST')
  },
  async verified(data) { //  实名认证
    return await wx.$ajax('realName', data || {}, 'POST')
  },
  async bindCompany(data) { //  新员工填写
    return await wx.$ajax('employee/bindCompany', data || {}, 'POST')
  },
  async userInfo(data) { //  个人中心
    return await wx.$ajax('employee/userInfo', data || {}, 'POST')
  },
  async totalReport(data) { //  配送总揽
    return await wx.$ajax('employee/totalReport', data || {}, 'POST')
  },
  async dayReport(data) { //  揽件日报表
    return await wx.$ajax('employee/dayReport', data || {}, 'POST')
  },
  async bindMobile(data) { //  修改手机号码
    return await wx.$ajax('employee/bindMobile', data || {}, 'POST')
  },
  async listLogistics(data) { //  托运单列表
    return await wx.$ajax('employee/listLogistics', data || {}, 'POST')
  },
  async detailLogistics(data){      //托运单详情
    return await wx.$ajax('employee/detailLogistics', data || {}, 'POST')
  },
  async postLogistics(data){      //确认揽件
    return await wx.$ajax('employee/postLogistics', data || {}, 'POST')
  },
  async getCompanyDetail(data){      //获取线路和货物类型信息
    return await wx.$ajax('employee/getCompanyDetail', data || {}, 'POST')
  },
  async submitOrder(data){      //获取线路和货物类型信息
    return await wx.$ajax('employee/submitOrder', data || {}, 'POST')
  },
  async doDubious(data){        //标记为可疑
    return  await wx.$ajax('employee/doDubious', data || {}, 'POST');
  },
  async getBindCompany(data){        //标记为可疑
    return  await wx.$ajax('employee/getBindCompany', data || {}, 'POST');
  },
  async checkCompany(data){        // 查看公司信息
    return  await wx.$ajax('employee/checkCompany', data || {}, 'POST');
  },

  async login(data){        //登录
    return  await wx.$ajax('api/weixinLogin', data || {}, 'POST');
  },

  async scanWayBillPaper(data){        //登录
    return  await wx.$ajax('scanpicture', data || {}, 'POST');
  }

}
